<script>
	function reloadLog() {
		var params = loglist.datagrid('options').queryParams; //先取得 datagrid 的查询参数  
		loglist.datagrid('reload'); //设置好查询参数 reload 一下就可以了  
		loglist.datagrid('unselectAll');
		loglist.datagrid('uncheckAll');
	}

	//根据条件查询
	function logSearch() {
		setGridSearchParams('loglist','logSearchForm',false,reloadLog);
	}
	
	function clearLogSearch() {
		setGridSearchParams('loglist','logSearchForm',true,reloadLog);
	}
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false">
		<@eu.datagrid id="loglist" idField="id" toolbar="#loglist_search"  url="log.do?loadList" item="com.xdtech.sys.vo.LogItem" />
		<div id="loglist_search">
			<div style="margin-bottom:5px;padding-left:5px;margin-top: 5px;">
				<form id="logSearchForm">
					<table>
						<tr>
							<td class="tbLabel">操作人：</td>
							<td><input class="easyui-validatebox textbox" name="operator" style="width: 150px" /></td>
							<td class="tbLabel">操作动作：</td>
							<td>
								<input class="easyui-validatebox textbox" name="operateAction" style="width: 150px" />
							</td>
							<td class="tbLabel">操作时间从：</td>
							<td>
								<input name="operateTimeForm"  class="easyui-datetimebox" />
							</td>
							<td class="tbLabel">操作时间到：</td>
							<td>
								<input name="operateTimeEnd"  class="easyui-datetimebox" />
							</td>
						</tr>
						<tr>
							<td class="tbLabel">参数关键字：</td>
							<td>
								<input class="easyui-validatebox textbox" name="operateComment" style="width: 150px" />
							</td>
							<td>
							</td>
							<td>
							</td>
							<td>
							</td>
							<td>
							</td>
							<td>
							</td>
							<td>
							</td>
							<td rowspan="2">
								<@eu.linkbutton showName="查询" iconCls="icon-search" onclick="logSearch()"/>
	 					 		<@eu.linkbutton showName="清空" iconCls="icon-clear" onclick="clearLogSearch()"/>
 					 		</td>
						</tr>
					</table>
				</form>
				
			</div>
			<div id="loglist_toolbar" style="height: auto">
				<@eu.linkbutton showName="刷新" shiro="sys:log:refresh" iconCls="icon-reload" onclick="reloadLog()"/>
			</div>
		</div>
	</div>
</div>